package com.oauth2.mapper;

import com.oauth2.domain.TbUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface TbUserMapper {

    @Select("SELECT id,username,`password`,phone,email,created,updated FROM tb_user WHERE username = #{username}")
    TbUser selectOneByUser(String username);
}
